<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich" >

	<ui:composition template="/templates/gerenciamento.xhtml" >
		<ui:define name="js">
		
		</ui:define>
		<ui:define name="css">
			<link rel="stylesheet" type="text/css" href="style/folha_gerenciamento.css" media="screen" />
			<link rel="stylesheet" type="text/css" href="style/logado.css" media="screen" />
			<style type="text/css">
			body {
				margin-left: 0px;
				margin-top: 0px;
				margin-right: 0px;
				margin-bottom: 0px;
			}
			</style>
		</ui:define>
		<ui:define name="mid">
			<h:form>
			
				<div class="head_show_results" align="center">
					<strong>
						<h:outputText value="#{descontoBean.parceiroEscolhido.nomeSimpl}" />
						<br/>
						<a4j:commandLink action="#{descontoBean.voltar}" execute="@form" render="@all" >
	        				<img src="images/voltar.jpg" />
	        			</a4j:commandLink>
					</strong>
				</div>
			  	<div class="inside_caixa_cinza2">
	    			<table width="690" border="0" cellspacing="1" cellpadding="0">
			      		<tr id="texto_branco">
			        		<td width="451" height="35" align="center" bgcolor="#2f3191"><strong>Produtos</strong></td>
			        		<td width="236" align="center" bgcolor="#2f3191"><strong>Valor</strong><strong></strong></td>
			      		</tr>
			      		<tr>
			        		<td colspan="3" bgcolor="#FFFFFF"><img src="images/3px.gif" alt="" width="3" height="3" /></td>
			      		</tr>
			      		
			      		<a4j:repeat rows="20" id="tableProdutos" value="#{descontoBean.gp}" var="gp" >
					      	
					      	<h:panelGroup rendered="#{!gp.impar}">
						      	<tr>
						        	<td height="30" align="center" bgcolor="#f5f5f5" id="texto_preto_normal">
						        		<h:outputText value="#{gp.produtos.nome} - #{gp.produtos.unidade}" />
						        	</td>
						        	<td align="center" bgcolor="#f5f5f5" id="texto_preto_normal">
						        		<h:outputText value=" de: R$ " />
						        		<h:outputText value="#{gp.valor}" >
						        			<f:convertNumber type="currency" locale="pt-BR" />
						        		</h:outputText>
						        		<h:outputText value=" por: R$ " />
						        		<h:outputText value="#{gp.preco}" >
						        			<f:convertNumber type="currency" locale="pt-BR" />
						        		</h:outputText>
						        		
						        	</td>
						      	</tr>
					      		<tr>
					        		<td colspan="3" bgcolor="#FFFFFF"><img src="images/3px.gif" alt="" width="3" height="3" /></td>
					      		</tr>
				      		</h:panelGroup>
				      		<h:panelGroup rendered="#{gp.impar}">
					      		<tr>
					        		<td height="30" align="center" bgcolor="#ffffff" id="texto_preto_normal">
					        			<h:outputText value="#{gp.produtos.nome} - #{gp.produtos.unidade}" />
					        		</td>
					        		<td align="center" bgcolor="#ffffff" id="texto_preto_normal" >
					        			<h:outputText value=" de: R$ " />
						        		<h:outputText value="#{gp.valor}" >
						        			<f:convertNumber type="currency" locale="pt-BR" />
						        		</h:outputText>
						        		<h:outputText value=" por: R$ " />
						        		<h:outputText value="#{gp.preco}" >
						        			<f:convertNumber type="currency" locale="pt-BR" />
						        		</h:outputText>
					        		</td>
					      		</tr>
					      		<tr>
					        		<td colspan="3" bgcolor="#FFFFFF"><img src="images/3px.gif" alt="" width="3" height="3" /></td>
					      		</tr>
					      	</h:panelGroup>	
					      		
			      		</a4j:repeat>
			      		
			    	</table>
			    	
			  	</div>
			  	<div class="inside_rodape_ranking" id="link_azul">
  				</div>
				
				

			</h:form>
		</ui:define>
	</ui:composition>

</html>